Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

[ruby/sequel] Use setter methods instead of Hash#10619

Merged
NateBrady23 merged 1 commit into
TechEmpower:masterfrom
p8:sequel/use-setter-methods
Jan 27, 2026
Merged

[ruby/sequel] Use setter methods instead of Hash#10619
NateBrady23 merged 1 commit into
TechEmpower:masterfrom
p8:sequel/use-setter-methods

Conversation

@p8
Copy link
Copy Markdown
Contributor

@p8 p8 commented Jan 27, 2026

Creating a model from a hash calls Sequel::Model::InstanceMethods#set_restricted which checks if the keys are defined as setter methods. Calling the setter methods directly perform better.

Creating a model from a hash calls
Sequel::Model::InstanceMethods#set_restricted which checks if the keys
are defined as setter methods. Calling the setter methods directly
perform better.
@NateBrady23 NateBrady23 merged commit 67475ff into TechEmpower:master Jan 27, 2026
4 checks passed
@p8 p8 deleted the sequel/use-setter-methods branch January 27, 2026 18:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants